类 CMainFrame
	HWINDOW m_hWindow
	def 整型 Run()
		BOOL bRes = XC_LoadResource("resource.res")
		m_hWindow = (HWINDOW)XC_LoadLayout("main.xml", 0)
		XEle_RegEventCPP(XC_GetObjectByName("button1"), XE_BNCLICK, &CMainFrame::OnBtnClick)
		//EVENT
		XWnd_AdjustLayout(m_hWindow)
		XWnd_ShowWindow(m_hWindow, SW_SHOW)
		返回 0
	def int  OnBtnClick(BOOL *pbHandled)
		返回 0

def 整型  入口函数_窗口()
	XInitXCGUI()
	CMainFrame  MainFrame
	MainFrame.Run()
	XRunXCGUI()
	XExitXCGUI()
	返回 0
